package com.googlecode.animator.controller
{
	import com.googlecode.data.markers.KeyframeVO;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	
	/**
	 * Updates the position information stored in a keyframe. 
	 * @author USER
	 * 
	 */
	public class TimelineSetKeyframePositionCommand extends BaseCommand
	{
		/**
		 * Executes Command. 
		 * @param notification
		 * 
		 */
		override public function execute(notification:INotification):void
		{
			var kf:KeyframeVO = (notification.getBody() as KeyframeVO);
			settings.updateKeyframePosition(kf.object3DName, kf.id, kf.position.clone());
		}
		
	}
}